﻿using ch02.binary.wasm_reader;
using ch02.cmd;

namespace ch02
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var (module, err) = WasmReader.DecodeFile("./binary/testdata/hw_rust.wasm");

            if (err == null)
            {
                Dumper.Dump(module);
            }
            else
            {
                throw err;
            }
        }
    }
}